package com.tuniu.agents.common.service;

import lombok.Builder;
import lombok.Getter;

/**
 * Rewrite Service
 */
public interface RewriteService {

    /**
     * User input rewriting method
     *
     * @param sentenceRewriteRequest The input for rewriting
     * @return The rewritten sentence or the original if input is blank
     */
    String rewrite(SentenceRewriteRequest sentenceRewriteRequest);

    @Builder
    public record SentenceRewriteRequest(
            /**
             * User input sentence
             */
            @Getter
            String sentence,
            /**
             * Maximum length of the expected rewritten sentence, reserved field, currently not in use
             */
            @Getter
            Integer expectSentenceLength) {

    }

    public record SentenceRewriteResponse(
            /**
             * The rewritten data
             */
            @Getter
            String sentence) {

    }

}
